import { RouterView } from 'vue-router';

import UserMng from './views/UserMng.vue';

const routes = [
  {
    path: 'user',
    component: RouterView,
    children: [
      {
        path: '',
        name: 'UserMng',
        component: UserMng,
        meta: {
          roles: ['admin'],
          title: '用户管理',
          requiresAuth: true,
        },
      },
    ],
  },
];

export default routes;
